<!--左侧导航开始-->
<nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div style="margin: 0 0 10px 30px; " class="dropdown profile-element">
                    <span></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                                <span class="clear">
                                <span class="block m-t-xs"><strong class="font-bold"><?=$miniapp->
                                    nick_name?></strong></span>
                                <span class="text-muted text-xs block">
                                    <b class="caret"></b></span>
                                </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li><a href="<?=url('passport/logout');?>">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element">@
                </div>
            </li>
            <li>
                <a class="J_menuItem" href="<?=url('index/main')?>">
                    <i class="fa fa-home"></i>
                    <span class="nav-label">主页</span>
                </a>
            </li>
            <?php foreach($leftMenus as $k=>$val){?>
            <li>
                <a href="#"><i class="fa <?=$val['icon']?>"></i> <span class="nav-label"><?=$val['name']?></span><span
                        class="fa arrow"></span></a>
                <ul class="nav nav-second-level">
                    <?php foreach($val['menu'] as $val1){ if($val1['is_show']==1){?>
                    <li><a class="J_menuItem"
                           href="<?=$val1['is_sub'] == 1 ? '' : url('admin/'.$val1['link']);?>"><?=$val1['name']?> <?=$val1['is_sub'] == 1 ? '<span class="fa arrow">
                        ' : ''?></a>
                        <?php if($val1['is_sub'] == 1) { ?>
                        <ul class="nav nav-third-level">
                            <?php foreach($val1['sub'] as $val2){ if($val2['is_show']==1){?>
                            <li><a class="J_menuItem" href="<?=url('admin/'.$val2['link']);?>"><?=$val2['name']?></a>
                            </li>
                            <?php }} ?>
                        </ul>
                        <?php } ?>
                    </li>
                    <?php } } ?>
                </ul>
            </li>
            <?php } ?>
        </ul>
    </div>
</nav>